package com.guoran100.adphoto;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.guoran100.adphoto.display.activity.PlayActivity;
import com.guoran100.adphoto.display.util.ToolsUtils;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
        ToolsUtils.checkNetwork(this);
        ToolsUtils.checkUpdate(this);

    }



    @OnClick(R.id.button)
    protected void play(){
        Intent intent = new Intent(MainActivity.this, PlayActivity.class);
        startActivity(intent);
    }


    @OnClick(R.id.button2)
    protected void updata(){
        ToolsUtils.checkUpdate(this);
    }
}
